import pandas as pd


# 如何遍历dataframe
def test1():
    df1 = pd.DataFrame({'uid': [1, 2, 3, 4],
                        'cid': [1, 2, 3, 4]})
    for index, row in df1.iterrows():
        for iter in row:
            print(iter, type(iter))
        print()


if __name__ == '__main__':
    test1()
